/**
 * Created by Administrator on 2017/4/19.
 */
class Person{
    name :string= 'Tokky';
    age:number;
    constructor(name:string,age:number){
        this.name = name;
        this.age = age
    }
    print(){
        return this.name+';'+this.age
    }
}
//实例化
var myPerson = new Person('Tokky2',55)//因为有构造，且有参数，必须传参
console.log(myPerson.print());
console.log(myPerson);
